package app.quiz;

import app.quiz.util.Constants;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created with IntelliJ IDEA.
 * User: Georgiana.Scarlat
 * Date: 8/13/12
 * Time: 3:58 PM
 */
public class ResultServlet extends GenericPatternServlet {

    @Override
    protected void setHtmlFileName() {
        htmlFileName = "resultTemplate.html";
    }


    @Override
    protected void fillInHTMLTemplate(HttpServletRequest request, HttpServletResponse response) {

        htmlTemplate.reset();

        htmlTemplate.setAttribute(Constants.MESSAGE, HomeServlet.resultMessage);
    }

}
